/**
 * toolData
 */
export class toolData {
        /**
         * 道具编号
         */
        public id:number = null!
        /**
         * 道具名
         */
        public name:string = null!
        /**
         * 图片
         */
        public img:string = null!
        /**
         * 层级
         */
        public zIndex:number = null!
        /**
         * 是否有方向
         */
        public hasDirection:boolean = null!
        /**
         * 占用格数
         */
        public occupy:string = null!
        /**
         * 是否有数量
         */
        public hasCount:boolean = null!
}
/**
 * Config
 */ 
export class ConfigData
{
	toolData: {[id:number]:toolData} = {}
    toolDataKeyList:number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]
}
export default class MyJson {
    public static Init(data: ConfigData) {
        let config = new ConfigData() as any
        var keys = Object.keys(config)
        let _data = data as any
        for (let i = 0; i < keys.length; i++) {
            if (!_data[keys[i]]) {
                _data[keys[i]] = config[keys[i]]
            }
        }
        return _data
    }
}